﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace DataContracts
{
    /// <summary>
    /// Define RoleDTO
    /// </summary>
    [DataContract]
    public class RoleDTO
    {
     
        private int _roleId;
        private string _roleName;
        private StatusDTO _status;
        private List<AuthorityDTO> _authorities;

       

        /// <summary>
        /// Role Id
        /// </summary>
        [DataMember]
        public int RoleId
        {
            get { return _roleId; }
            set { _roleId = value; }
        }

        /// <summary>
        /// Role Name
        /// </summary>
        [DataMember]
        public string RoleName
        {
            get { return _roleName; }
            set { _roleName = value; }
        }

        /// <summary>
        /// User Status
        /// </summary>       
        [DataMember]
        public StatusDTO Status
        {
            get { return _status; }
            set { _status = value; }
        }

        /// <summary>
        /// AuthorityDTO Attribute
        /// </summary>
        [DataMember]
        public List<AuthorityDTO> Authorities
        {
            get { return _authorities; }
            set { _authorities = value; }
        }
    }
}
